// ActivexTestPropPage.cpp : Implementation of the CActivexTestPropPage property page class.

#include "stdafx.h"
#include "ActivexTest.h"
#include "ActivexTestPropPage.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


IMPLEMENT_DYNCREATE(CActivexTestPropPage, COlePropertyPage)



// Message map

BEGIN_MESSAGE_MAP(CActivexTestPropPage, COlePropertyPage)
END_MESSAGE_MAP()



// Initialize class factory and guid

IMPLEMENT_OLECREATE_EX(CActivexTestPropPage, "ACTIVEXTEST.ActivexTestPropPage.1",
	0x1a88a50, 0x7dd0, 0x4987, 0xaa, 0x3b, 0x2e, 0xf0, 0xb9, 0xff, 0x82, 0x58)



// CActivexTestPropPage::CActivexTestPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CActivexTestPropPage

BOOL CActivexTestPropPage::CActivexTestPropPageFactory::UpdateRegistry(BOOL bRegister)
{
	if (bRegister)
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
			m_clsid, IDS_ACTIVEXTEST_PPG);
	else
		return AfxOleUnregisterClass(m_clsid, NULL);
}



// CActivexTestPropPage::CActivexTestPropPage - Constructor

CActivexTestPropPage::CActivexTestPropPage() :
	COlePropertyPage(IDD, IDS_ACTIVEXTEST_PPG_CAPTION)
{
}



// CActivexTestPropPage::DoDataExchange - Moves data between page and properties

void CActivexTestPropPage::DoDataExchange(CDataExchange* pDX)
{
	DDP_PostProcessing(pDX);
}



// CActivexTestPropPage message handlers
